<?php

namespace app\admin\controller;

use app\admin\service\Token;
use app\admin\model\User;
use app\admin\model\Upload;
use app\admin\model\Article;
use app\admin\model\Notice;
use app\admin\model\Detection;
use think\Controller;

class Index extends Controller
{
    public function index(){
        $token = Token::getToken();
        $this -> assign("token",$token);
        if(Token::getUid() == 0){
            $this -> redirect("login/login/login");
        }
        $this -> redirect("Admin/Upload/index");
    }
}